package com.liuguangaop.convert;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.User;

/**
 * @ClassName: ConvertTest
 * @Description：
 * @Author: wanghr
 * Date: 6:58 PM 2020/7/13
 * Version: 1.0
 */
@Slf4j
@RestController
@RequestMapping("/covert")
public class ConvertTest {
    @PostMapping("/test1")
    public User test1(User user) {
        log.info("进入参数转换测试方法,参数是：{}",user);
        return user;
    }
}
